home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
.net 2002 March
/
DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin
/
pc
/
PC Software
/
free_browsing
/
DavesQckSearchDbar3-14
/
dqsd.exe
/
searches
/
acine.xml
< prev
next >
Wrap
Text File
|
2002-09-10
|
5KB
|
136 lines
<!-- Do not switch encoding - MSXML in many IE 5.5 installations cannot handle it - xml version="1.0" encoding="ISO-8859-1" -->
<search function="acine">
<name>Allocine.com</name>
<description>
Search <i>the</i> french site about movies, stars, theaters schedules, critics, trailers, etc...<br/>
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr><td colspan="3">Narrow your search to...</td></tr>
<tr><td>/place</td><td> - </td><td>movies playing near your place (name or zip code)</td></tr>
<tr><td>/zip:[number]</td><td> - </td><td>movies playing near your zip code (direct search)<br/>
optional : <i>number</i> forces to find <i>number</i> theaters</td></tr>
<tr><td>/bywith</td><td> - </td><td>movies by its director or one of its actor</td></tr>
<tr><td>/movie</td><td> - </td><td>informations on a movie (part or whole of the name)</td></tr>
<tr><td>/theater</td><td> - </td><td>what's playing in a theater (theater or city name)</td></tr>
<tr><td>/news</td><td> - </td><td>latest news about somebody, a movie, a company</td></tr>
<tr><td>/bio</td><td> - </td><td>the biography of a celebrity</td></tr>
<tr><td>/video</td><td> - </td><td>video sources (trailers, extracts, making ofs...)</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td>acine meilleurs copains</td></tr>
<tr><td>acine marseille /place</td></tr>
<tr><td>acine 13001 /zip:30</td></tr>
<tr><td>acine jean-pierre melville /bywith</td></tr>
<tr><td>acine meilleurs copains /movie</td></tr>
<tr><td>acine le grand rex /theater</td></tr>
<tr><td>acine cruise /news</td></tr>
<tr><td>acine adjani /bio</td></tr>
<tr><td>acine shrek /video</td></tr>
</table>
</description>
<category>Entertainment</category>
<link>http://www.allocine.com/</link>
<contributor>MLL</contributor>
<form name="acinef_general"
action="http://www.allocine.com/recherche/default.html"
method="get">
<input type="hidden" name="motcle" value=""/>
</form>
<form name="acinef_rubrique"
action="http://www.allocine.com/recherche/rubrique.html"
method="get">
<!-- they seem to have changed their parameter name <input type="hidden" name="type" value=""/> -->
<input type="hidden" name="typerecherche" value=""/>
<input type="hidden" name="motcle" value=""/>
</form>
<form name="acinef_salleproche"
action="http://www.allocine.com/seance/salleproche.html"
method="get">
<input type="hidden" name="codepostal" value=""/>
<input type="hidden" name="nb" value=""/>
</form>
<script><![CDATA[
function acine(q)
{
if( nullArgs( "acine", q ) ) return false;
var args = parseArgs(q, "place, bywith, movie, theater, news, bio, video, zip");
var mode, typerech="0";
//eliminate cases where you got more than 1 switch
if( args.switches.length > 1 )
{
nullArgs( "acine", "?" );
return false;
}
//establish the mode the search will run in.
if( args.switches.length == 1 ) mode = args.switches[0].name;
//set some parameters and eliminate the unknown switch case
switch( mode )
{
/* they seem to have changed their parameter name
case "place": document.acinef.type.value = "3"; break;
case "bywith": document.acinef.type.value = "2"; break;
case "theater": document.acinef.type.value = "9"; break;
case "news": document.acinef.type.value = "4"; break;
case "bio": document.acinef.type.value = "7"; break;
*/
case "place": typerech = "9"; break;
case "bywith": typerech = "4"; break;
case "movie" : typerech = "3"; break;
case "theater": typerech = "8"; break;
case "news": typerech = "12"; break;
case "bio": typerech = "10"; break;
case "video": typerech = "7"; break;
case "zip": break;
default:
if( mode )
{
nullArgs("acine","?");
return false;
}
break;
}
//launch the search
if ( typerech != "0" )
{
document.acinef_rubrique.motcle.value = args.q;
document.acinef_rubrique.typerecherche.value = typerech;
submitForm(acinef_rubrique);
}
else if ( mode == "zip" )
{
document.acinef_salleproche.codepostal.value = args.q;
document.acinef_salleproche.nb.value = args.switch_val["zip"];
submitForm(acinef_salleproche);
}
else
{
document.acinef_general.motcle.value = args.q;
submitForm(acinef_general);
}
}
]]></script>
<copyright>
Copyright (c) 2002 David Bau
Distributed under the terms of the
GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>